/* 测试目录的菜单
    1、在这个文件添加路由后，需在 locales/lang/en/routes/demo.ts (中文locales/lang/zh-CN/routes/demo.ts)
       文件内的test属性下添加国际化命名
 */
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/test',
  name: 'testVben',
  component: LAYOUT,
  redirect: '/test/flowChart',
  meta: {
    orderNo: 5000,
    icon: 'ep:brush',
    title: t('routes.demo.test.name'),
  },
  children: [
    {
      path: 'testTable',
      name: 'testTable',
      component: () => import('/@/views/demo/comp/flow-chart/index.vue'),
      meta: {
        title: t('routes.demo.test.table'), // 表格
      },
      children: [
        {
          path: 'basicDemo',
          name: 'basicDemo',
          component: () => import('/@/views/testVben/table/basicDemo/index.vue'),
          meta: {
            title: t('routes.demo.test.basicDemo'), // 基础案例
          },
        },
      ],
    },
    {
      path: 'testForm',
      name: 'testForm',
      component: () => import('/@/views/testVben/table/basicDemo/index.vue'),
      meta: {
        title: t('routes.demo.test.form'), // 表单
      },
    },
    {
      path: 'testComponent',
      name: 'testComponent',
      component: () => import('/@/views/testVben/table/basicDemo/index.vue'),
      meta: {
        title: t('routes.demo.test.component'), // 组件
      },
    },
    {
      path: 'testChart',
      name: 'testChart',
      component: () => import('/@/views/testVben/table/basicDemo/index.vue'),
      meta: {
        title: t('routes.demo.test.chart'), // 图表
      },
    },
  ],
};

export default charts;
